﻿using mozhi.smarterp.BasicData.Enums;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;

namespace mozhi.smarterp.BasicData.NumberRules.Repositories
{
    public interface IDocumentNumberRuleRepository : IRepository<DocumentNumberRule, Guid>
    {
        Task<int> GetCountAsync(DocumentType type, bool? isDefault, CancellationToken cancellationToken = default(CancellationToken));

        Task<List<DocumentNumberRule>> GetListAsync(DocumentType type, bool? isDefault, CancellationToken cancellationToken = default(CancellationToken));
    }
}
